package org.ushio.nchu_22201408.mapper;

import org.apache.ibatis.annotations.*;
import org.ushio.common_module.entity.CustomerServiceRating;
import java.util.Date;

@Mapper
public interface CustomerServiceRatingMapper {
    @Insert("INSERT INTO customer_service_rating(Rated_Object_ID, Rater_ID, Rating, Rating_Date, Rating_Details) " +
            "VALUES(#{ratedObjectId}, #{raterId}, #{rating}, #{ratingDate}, #{ratingDetails})")
    @Options(useGeneratedKeys = true, keyProperty = "ratingRecordId")
    void insertCustomerServiceRating(CustomerServiceRating customerServiceRating);
}